function faxForm(faxNumber,subject,html,applPage,webMethod){
	webMethod = webMethod || "FaxFormWithImages";
	if( !checkWS(true) )return alert("Try again!") || false;
	__triggerHiddens(document.body,true);
	html = __prepareToFAX(html);
	if( applPage && typeof(applPage.RecordCount) == "number" )
			applPage = __formatRSImages(applPage);
	else if( applPage )applPage = ["1|"+applPage];
	var ret = WS(CO(webMethod),encodeXML(html),faxNumber||null,subject,applPage);
	__triggerHiddens(document.body,false);
	return showSOAPError(ret) ? null : ret;
	// Locals
	function __formatRSImages(rsImages){
		if( !rsImages.Recordcount )return [];
		var images = new Array();
		for( rsImages.MoveFirst(); !rsImages.EOF; rsImages.MoveNext() )
			images.push(rsImages("ID")+"|"+rsImages("Pages"));
		return images;
	}
	function __triggerHiddens(body,hide){
		var hiddens = selectElementsByAttribute(body,"hidden");
		for( var i=0; i < hiddens.length; i++ )
			if( hide )
				hiddens[i].style.display = hiddens[i].hidden=="true"?"none":"";
			else
				hiddens[i].style.display = hiddens[i].hidden=="true"?"":"none";
	}
	function __prepareToFAX(html){
		html = html || document.documentElement.outerHTML;
		html = html.replace(/<xml[\s\S]+?<\/xml>/ig,"");
		html = html.replace(/<script[\s\S]+?<\/script>/ig,"");
		html = html.replace(/ on\S+?=\"?.+?\"?(?=[ >])/ig,"");
		html = html.replace(/<[?].+?>/gi,"");
		html = html.replace(/behavior/ig,"");
		if( typeof(localBase) != 'undefined' )html = insertBASE(html,localBase);
		return html;
	}
}
